package com.gxk.stage;

import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.gxk.res.ImageFactory;
import com.gxk.res.PublicConst;

public class LoadingStage extends Stage {
	private Image loadingBgImg;
	private Image logoImg;

	public LoadingStage() {
		this.create();
		this.stageInit();
		this.addStageActor();
	}

	private void create() {
		logoImg = ImageFactory.getLogoImage();
		loadingBgImg = ImageFactory.getLoadingBgImage();
	}

	private void stageInit() {
		loadingBgImg.setBounds(0, 0, PublicConst.WORLD_WIDTH,
				PublicConst.WORLD_HEIGHT);
		logoImg.setBounds(94, 206, 100, 100);
	}

	private void addStageActor() {
		this.addActor(loadingBgImg);
		this.addActor(logoImg);
	}
}
